

<template>
  <n-message-provider>
    <n-config-provider :theme="user.theme=='dark'?darkTheme:null">
      <router-view></router-view>
      <!-- 增加一个message组件可以在外部使用 -->
      <message/> 
    </n-config-provider>
  </n-message-provider>
</template>
<script setup lang="ts">
import { defineComponent, ref } from 'vue'
import { useUserStore } from '@/store/modules/user'
import { darkTheme } from 'naive-ui'
import Message from '@/views/layout/message.vue'
const lightThemeOverrides = {
  common: {
    primaryColor: '#000000'
  }
}
const darkThemeOverrides = {
  common: {
    primaryColor: '#FFFFFF'
  }
}
const user = useUserStore()
</script>
<style lang="scss" scoped>
@import '@/assets/style/common.scss';//公共样式

</style>
